<template>
  <div>
    Home组件<br />
    <el-button class="logoutBtn" type="info" @click="logout">退出</el-button>
  </div>
</template>

<script>
export default {
  methods: {
    logout() {
      window.sessionStorage.clear()
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="less" scoped>
.logoutBtn {
  margin: 5px;
}
</style>
